package com.myacg.editor.common.events;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JOptionPane;

/**
 * 默认窗体关闭事件
 * @author Administrator
 */
class  WindowCloseLinsiner  extends WindowAdapter {
	/**
	 * 窗体关闭事件
	 */
	public void windowClosing(WindowEvent e) {
		//0 是 1否  2取消 
		int result = JOptionPane.showConfirmDialog(e.getComponent(), "确定退出?");
	    if(result == 0){ System.exit(0);  }
	}
}